import http from "@/utils/request";
// 获取加班列表
export const getOvertimeList = (data) => {
    return http.get("/rsgl/overtime/list", data);
};
// 获取加班详情
export const getOvertimeById = (data) => {
    return http.get(`/rsgl/overtime/get/${data}`);
};
// 新增加班
export const addOvertime = (data) => {
    return http.post("/rsgl/overtime/add", data);
};
// 修改加班
export const updateOvertime = (data) => {
    return http.put("/rsgl/overtime/update", data);
};
// 删除加班
export const deleteOvertimeById = (data) => {
    return http.delete(`/rsgl/overtime/delete/${data}`);
};
